package cn.bdqn.controller.questionBank;

import cn.bdqn.service.questionBank.OperationRecordService;
import cn.bdqn.utils.Json;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/operationRecord")
public class OperationRecordController {

    @Autowired
    private OperationRecordService operationRecordService;
    @PreAuthorize("hasAuthority('question:management')")
    @GetMapping("/selectAllOperationRecord")
    public Json selectAllOperationRecord(){
        return operationRecordService.selectAllOperationRecord();
    }
}
